//
//  MusicTableViewCell.m
//  FitTime
//
//  Created by Zone on 16/4/9.
//  Copyright © 2016年 赵建平. All rights reserved.
//

#import "MusicTableViewCell.h"

@implementation MusicTableViewCell



- (void)setMusicName:(NSString *)musicName {
    
    _musicName = musicName;
    
    self.musicNameLabel.text = musicName;
}

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        self.musicNameLabel = [UILabel labelWithFrame:CGRectZero color:nil alignment:NSTextAlignmentCenter];
        self.musicNameLabel.font = [UIFont fontWithName:@"MarkerFelt-Thin" size:20];
        self.musicNameLabel.textColor = [UIColor blackColor];
        [self.contentView addSubview:self.musicNameLabel];
    }
    return self;
}

- (void)layoutSubviews {
    [super layoutSubviews];
    
    self.musicNameLabel.frame = self.bounds;
    
}

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
